package com.bgrconsulting.stockorderentry.service.model;

import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable
public class AccountPosition {
	@PrimaryKey
	private String accountId;
	
	@Persistent
	private String masterAccount;
	
	@Persistent
	private Double costBasis;
	
	@Persistent
	private String description;
	
	@Persistent
	private String longOrShort;
	
	@Persistent
	private boolean marginable;
	
	@Persistent
	private Product productId;
	
	@Persistent
	private Double quanity;
	
	@Persistent
	private Double marketValue;
	
	public AccountPosition(Double costBasis, 
			String description, 
			String longOrShort, 
			boolean marginable,
			Product productId,
			Double quanity,
			Double marketValue) {
		
	}
	
	public AccountPosition() {

	}
	
	public void setMasterAccount(String masterAccount) {
		this.masterAccount = masterAccount;
	}
	
	public String getMasterAccount() {
		return this.masterAccount;
	}
	
	public void setAccountId(String accountId) {
		this.accountId = accountId;
	}
	
	public String getAccountId() {
		return this.accountId;
	}
	
	public void setCostBasis(Double costBasis) {
		this.costBasis = costBasis;
	}
	
	public Double getCostBasis() {
		return this.costBasis;
	}
	
	public void setDescription(String description) {
		this.description = description;
	}
	
	public String getDescription() {
		return this.description;
	}
	
	public void setLongOrShort(String longOrShort) {
		this.longOrShort = longOrShort;
	}
	
	public String getLongOrShort() {
		return this.longOrShort;
	}
	
	
	public void setMarginable(boolean marginable) {
		this.marginable = marginable;
	}
	
	public boolean getMarginable() {
		return this.marginable;
	}
	
	public void setProduct(Product productId)
	{
		this.productId = productId;
	}
	
	public Product getProduct() {
		return this.productId;
	}
	
	public void setQuanity(Double quanity) {
		this.quanity = quanity;
	}
	
	public Double getQuanity() {
		return this.quanity;
	}
	
	public void setMarketValue(Double marketValue)  {
		this.marketValue = marketValue;
	}
	
	public Double getMarketValue() {
		return this.marketValue;
	}

}
